package com.xu.mall.user.position.model;

import java.io.Serializable;

import com.xu.mall.base.tree.entity.BaseTreeEntity;

public class Position extends BaseTreeEntity implements Serializable {
	private static final long serialVersionUID = -3881160718708754747L;
	private static final String CODE_HEAD = "ORG_POST_";
	private String orgUnitId;
	private Integer maxPerson;
	private Integer curPerson;

	@Override
	public void setCode(String code) {
		super.code = code.startsWith(CODE_HEAD) ? code : CODE_HEAD + code;
	}

	public String getOrgUnitId() {
		return orgUnitId;
	}

	public void setOrgUnitId(String orgUnitId) {
		this.orgUnitId = orgUnitId;
	}

	public Integer getMaxPerson() {
		return maxPerson;
	}

	public void setMaxPerson(Integer maxPerson) {
		this.maxPerson = maxPerson;
	}

	public Integer getCurPerson() {
		return curPerson;
	}

	public void setCurPerson(Integer curPerson) {
		this.curPerson = curPerson;
	}

}